<%@page import="java.text.Format"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="firstping.model.Customer"%>
<%
String customer = (String) session.getAttribute("customer");
String type = (String) session.getAttribute("type");
%>

<div class="bd_left">
	<div class="login">
		<div class="menu">
			<%
			if(customer != null)
			{
			%>
				My account
			<%
			} else {
			%>
				Member login
			<%
			}
			%>
		</div>
		<%
		if(customer != null)
		{
		%>
			<ul class="cu">
				<%
				if(type.equals("Trial"))
				{
				%>
				<li class="update"><b><a href="/update">Update account</a></b></li>
				<%
				}
				%>
				<li><b>Exp date</b> : 
				<%
					Format formatter = new SimpleDateFormat("MM/dd/yy");
					String s = formatter.format(session.getAttribute("exp")); 
					out.print(s);
				%>
				</li>
				<li><b>Type</b> : <%=session.getAttribute("type") %></li>
				<li><b>Request</b> : <%=session.getAttribute("req") %> Minutes</li>	
				<li><b><a href="/logout">Logout</a></b></li>
			</ul>
		<%
		} else {
		%>
			<form class="form" action="/login" method="post">
				<input type="text" name="email" value="Email" onclick="javascript:this.value=''"/>
				<input type="password" name="pwd" value="Password" onclick="javascript:this.value=''"/>
				<button>Login</button>
			</form>
			<a href="/for-got-password" class="fogot">Fogot my password</a>
		<%
		}
		%>
	</div>
	<div class="note">
		<h2><a href="#">Guaranteed Top 10 Exposure</a></h2>
		<p>
		Top 10 exposure across 100's of search engines and web directories for $3 - $4 per month.
		</p>
		<h2><a href="#">Guaranteed Top 10 Exposure</a></h2>
		<p>
		Top 10 exposure across 100's of search engines and web directories for $3 - $4 per month.
		</p>
		<h2><a href="#">Guaranteed Top 10 Exposure</a></h2>
		<p>
		Top 10 exposure across 100's of search engines and web directories for $3 - $4 per month.
		</p>
		<h2><a href="#">Guaranteed Top 10 Exposure</a></h2>
		<p>
		Top 10 exposure across 100's of search engines and web directories for $3 - $4 per month.
		</p>
	</div>
</div>